#pragma once
#include "Station.h"
#include "IOStation.h"
using namespace System::Xml;

class ConfigParser
{
public:
	ConfigParser(void);
	map<string, Station*> parseConfig(string);
private:
	pair<string, Station*> xmlToStation(XmlNode^ node);
	pair<string, IOStation*> xmlToIOStation(XmlNode^ node);
	void linkStations(map<string, Station*> stations, XmlNodeList^ links);
};

